package com.exam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.exam.domain.enums.MessageType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "消息实体")
public class Message {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("编号")
    private Integer id;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型")
    private String type;

    @TableField("create_time")
    @ApiModelProperty("发送时间")
    private Date createTime;

    @TableField("teacher_id")
    @ApiModelProperty("课程所属教师id")
    private String teacherId;

    @TableField("student_id")
    @ApiModelProperty("消息所属学生id")
    private String studentId;

    @TableField(exist = false)
    private Teacher teacher;

    @TableField(exist = false)
    private Student student;
}
